<!doctype html>

<head>
    <meta name="Generator"  />
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <title>选择支付方式</title>
    <meta name="Keywords" content="Call管家" />
    <meta name="Description" content="Call管家" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>

    <link rel="stylesheet" href="__HOMECSS__/style.css">
    <script src="__HOMEJS__/jquery-1.7.2.min.js"></script>
</head>

<body style="margin-bottom: 60px;">


<style>
    .confirm_delivery input[type="radio"]{
        -webkit-appearance: none;
        outline: none;
        width: 20px;
        height: 20px;
        background-image: url(__HOMEIMG__/yigou_03.png);
        background-size: cover;
        cursor: pointer;
    }
    .confirm_delivery input[type="radio"]:checked{
        background-image: url(__HOMEIMG__/gou_03.png);
    }
</style>
<form method="post">
    <input type="hidden" name="order_id" value="{:input('param.order_id')}">
    <div>
        {foreach name="system_config['pay_code']" item="item" key="key"}
            <a href="javascript:;" class="confirm_delivery" style="display: block">
                <span style="width: 30%;">{$item}</span>
                <span class="baoyou productImg">
                     <input type="radio" class="selectPart" name="pay_code" value="{$key}" style="margin-top: 13px" required>
                </span>
            </a>
        {/foreach}
    </div>
    <div class="confirm_rement" style="position:inherit;border-top:0;">
        <span id="pay" style="width:100%;font-size: 16px;">支付</span>

    </div>
</form>
</body>

<script src="__PUBLIC__/layer/layer.js"></script>
<script>
    $('.confirm_delivery').click(function(){
        $('input[name=pay_code]').removeAttr("checked");
        $(this).find('input').attr("checked","true");
    });
    $('#pay').click(function(){
        var pay_code = $('input[name=pay_code]:checked').val();
        if(!pay_code){
            layer.msg('请选择支付方式');return;
        }
        $('form').submit();
    });
</script>
</html>
